package com.gxa.entity;


import java.util.Objects;

public class IpResultEntity {
    private String ip;
    private Double sum;

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        IpResultEntity that = (IpResultEntity) o;
        return ip.equals(that.ip) &&
                sum.equals(that.sum);
    }

    @Override
    public int hashCode() {
        return Objects.hash(ip, sum);
    }

    @Override
    public String toString() {
        return "IpResultEntity{" +
                "ip='" + ip + '\'' +
                ", sum=" + sum +
                '}';
    }

    public String getIp() {
        return ip;
    }

    public void setIp(String ip) {
        this.ip = ip;
    }

    public Double getSum() {
        return sum;
    }

    public void setSum(Double sum) {
        this.sum = sum;
    }

    public IpResultEntity() {
    }

    public IpResultEntity(String ip, Double sum) {
        this.ip = ip;
        this.sum = sum;
    }
}
